﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Markup;
using ZeroBug.EasyFlow.Core;

namespace EasyFlow
{
    public class StatusToIconConverter : MarkupExtension, IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            FlowStatus status = (FlowStatus)value;
            switch(status)
            {
                case FlowStatus.Init:
                case FlowStatus.Created:
                    break;
                case FlowStatus.Paused:
                    break;
                case FlowStatus.Stopped:
                    break;
                case FlowStatus.Closed:
                    break;
            }
            return "";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            return new StatusToIconConverter();
        }
    }
}
